package com.example.qxfw.common.dmgis.layer;


import cn.hutool.extra.spring.SpringUtil;
import com.example.qxfw.common.dmgis.constant.ContourMapType;
import com.example.qxfw.common.dmgis.mapper.ContourSettingMapper;
import com.example.qxfw.common.dmgis.mapper.EqProjectConfigMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;

import javax.annotation.PostConstruct;

//等值图图层
public abstract class ContourMapLayer {

    @Value("${dmgis.tempPath}")
    protected  String tempPath;

    protected ContourSettingMapper contourSettingMapper;

    protected EqProjectConfigMapper projectConfigMapper;

    @PostConstruct
    public void init() {
        contourSettingMapper=SpringUtil.getBean(ContourSettingMapper.class);
        projectConfigMapper=SpringUtil.getBean(EqProjectConfigMapper.class);
    }


    //标题
   public abstract void titleLayer();
   //图例
   public abstract void legendLayer();
   //图例文本
   public abstract void legendTextLayer();

   //画图层
   public final void drawLayer(){
       titleLayer();
       legendLayer();
       legendTextLayer();
   }
}
